package test.exam04;

public class IbatisService {

	private IbatisDao ibatisDao;
	
	// setXXX() 형태의 method를 통해 object를 inject 받음
	public void setIbatisDao(IbatisDao ibatisDao) {
		this.ibatisDao = ibatisDao;
	}
	
	public void daoTest() {
		System.out.println("START");
		ibatisDao.insertDB();
		ibatisDao.updateDB();
		System.out.println("END");
	}
}
